import alg
import gen
def main():
    print(r'请输入测试的数量：')
    numb=int(input())
    for i in range(numb):
        nums,lower,upper=gen.genrandom()
        print(f'数组{nums}')
        print(f'区间为{lower}到{upper}')
        sol=alg.Solution()
        count=sol.countRangeSum(nums,lower,upper)
        print(f'区间和个数为{count}')

if __name__=='__main__':
    main()